package by.brest.bspc.domain;

/**
 * This class contains the data of specialty.
 *
 * @date: 7/28/13 10:20 AM
 * @author: natallia
 */

public class Specialty {
    private String name;
    private String code;

    public Specialty() {
        this.name = null;
        this.code = null;
    }

    /**
     * Gets name of specialty
     *
     * @return name of specialty
     */
    public String getName() {
        return name;
    }

    /**
     * Sets name of specialty
     *
     * @param name name of specialty
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets code of specialty
     *
     * @return code of specialty
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets code of specialty
     *
     * @param code code of specialty
     */
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Specialty{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}